<script setup lang="ts">
import { ref } from 'vue'

// import { ref } from 'vue'
// import ChildOne from './components/ChildOne.vue'

// const money = ref(100)
// const car = ref('黄包车')
// const house = ref('乡村大別野')

const options = [
  { label: '男', value: 1 },
  { label: '女', value: 0 }
]
const gender = ref<string | number>(1)

const options1 = [
  { label: '就诊过', value: 1 },
  { label: '没有就诊过', value: 0 }
]
const isFlag = ref(0)
</script>

<template>
  <div class="article-page">
    <!-- <child-one :model-value="money" @update:model-value="money = $event" /> -->
    <!-- 优化 -->
    <!-- <child-one v-model="money" :car="car" @update:car="car = $event" /> -->
    <!-- <child-one v-model="money" v-model:car="car" v-model:house="house" /> -->

    <!-- <cp-radio-btn
      :options="options"
      :model-value="gender"
      @update:model-value="gender = $event"
    /> -->
    <!-- 优化 -->
    <cp-radio-btn :options="options" v-model="gender" />

    <cp-radio-btn :options="options1" v-model="isFlag" />
  </div>
</template>

<style lang="scss" scoped></style>
